package login

type PhoneLoginRequest struct {
	Phone    string `form:"phone" vd:"len($)>=6 & len($)<=12;msg:'手机号格式错误'"`
	Password string `form:"password" vd:"len($)>=6 & len($)<=50;msg:'密码格式错误'"`
}

type PhoneLoginResponse struct {
	Token      string `json:"token"`
	UserId     int    `json:"user_id"`
	RealName   string `json:"real_name"`
	Phone      string `json:"phone"`
	BusinessID int    `json:"business_id"`
}
